package com.rightsidetech.trade.mapper;

import com.rightsidetech.trade.dtos.request.TdCommodityGiftOrderReq;
import com.rightsidetech.trade.dtos.response.CommodityUserGiftResp;
import com.rightsidetech.trade.entity.TdCommodityUserGiftRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TdCommodityUserGiftRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TdCommodityUserGiftRecord record);

    int insertSelective(TdCommodityUserGiftRecord record);

    TdCommodityUserGiftRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TdCommodityUserGiftRecord record);

    int updateByPrimaryKey(TdCommodityUserGiftRecord record);

    List<CommodityUserGiftResp> giftPage(TdCommodityGiftOrderReq req);

    TdCommodityUserGiftRecord selectOneByOrderNo(@Param("orderNo") String orderNo);

    List<String> selectTrackNoListByOrderNo(@Param("orderNo") String orderNo);
}